<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>地图</title>
</head>

<body>  
	<script src="js/jquery-3.0.0.min.js"></script>
	  <script src="js/core.js"></script>
     <script>
    	   	if(getvl("id")!=""){
	   $.ajax({
		url: urlcore + "/api/shopInfo/selectagno1?shopId="+getvl("id"),
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
	  var urls='https://apis.map.qq.com/tools/routeplan/';
	  urls+='eword='+data.data.storeName+'&epointx='+data.data.lat+'&epointy='+data.data.lng+'?referer=myapp&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77';
				 window.location.href=urls;
			}else{
				alert(data.msg);
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
    	        }else{
    	        	window.location.href="gotoindex.html";
    	        }
    	   
    </script>
</body>
</html>